﻿using System.ComponentModel;
using Aierp.Utility;
using Chloe.Entity;

namespace Aierp.SystemEntities.System
{
    [Description("区域")]
    public class Sys_Area
    { 
        /// <summary>
        /// KeyId
        /// </summary>
        [Description("KeyId")]
        [Column(IsPrimaryKey = true)]
        [AutoIncrement]
        public int KeyId { get; set; }

        /// <summary>
        /// ParentId
        /// </summary>
        [Description("ParentId")]
        public int ParentId { get; set; }

        /// <summary>
        /// 简称
        /// </summary>
        [Description("简称")]
        public string ShortName { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Description("名称")]
        public string Name { get; set; }

        /// <summary>
        /// 全称
        /// </summary>
        [Description("全称")]
        public string MergerName { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [Description("级别")]
        public int AreaLevel { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        [Description("拼音")]
        public string Pinyin { get; set; }

        /// <summary>
        /// 长途区号
        /// </summary>
        [Description("长途区号")]
        public string Code { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        [Description("邮编")]
        public string ZipCode { get; set; }

        /// <summary>
        /// 首字母
        /// </summary>
        [Description("首字母")]
        public string First { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [Description("经度")]
        public string Lng { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [Description("纬度")]
        public string Lat { get; set; }

        public override string ToString()
        {
            return JSONhelper.ToJson(this);
        }
    }
}